<?php
/**
* Admin for CMS settings
*
* @author Mario Schillermann <info@rockit-flash.com>
* @encoding UTF-8 äöüßÖÄÜ
* @copyright © 2011 Mario Schillermann (info@rockit-flash.com)
* @license GNU GPL v2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @package Page
* @subpackage Index
* @link $HeadURL$
* @version SVN: $Id$
* @phpVersion >=5
* @todo
*/

class Admin_SetupController extends Zend_Controller_Action
{
    /**
     * Initialize the general options
     *
     * @return void
     */
    public function init()
    {
        //parent::init();
            //$layout = Zend_Layout::getMvcInstance();
            // Set a layout script path:
            //$layout->setLayoutPath(APPLICATION_PATH . '/modules/admin/src');///admin/view/scripts');
            // choose a different layout script:
            //$layout->setLayout('layout');
            //$this->_helper->layout->setLayout('layout');
        $this->_helper->layout->disableLayout();
    }
    /**
     * Index
     *
     * @return void
     */
    public function indexAction()
    {

        $form = new Admin_Form_Setup;
        $getForm = $form->build();

        if ($this->getRequest()->isPost()) {

            if ($form->isValid($_POST)) {
                echo "erledigt";
            } else {
                $this->view->form = $getForm;
            }
        } else {
            $this->view->form = $getForm;
        }

    }
}

